//
//  AddAccoutViewController.m
//  project
//
//  Created by 张亚林 on 2017/10/31.
//  Copyright © 2017年 Macmini. All rights reserved.
//

#import "AddAccoutViewController.h"

#import "ZWTools.h"
#import "MBProgressHUD+KR.h"

@interface AddAccoutViewController ()

@property (weak, nonatomic) IBOutlet UITextField *kaihuhangTF;
@property (weak, nonatomic) IBOutlet UITextField *zhihangTF;
@property (weak, nonatomic) IBOutlet UITextField *nameTF;
@property (weak, nonatomic) IBOutlet UITextField *accoutTF;

@end

@implementation AddAccoutViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (IBAction)clickBaoCun:(id)sender {
    
    NSMutableDictionary *requestParameter = [NSMutableDictionary dictionary];
    requestParameter[@"ownerIsUser"] = @"true";
    requestParameter[@"collectionType"] = @"1";
    requestParameter[@"collectionAddr"] = self.accoutTF.text;
    requestParameter[@"bankName"] = self.kaihuhangTF.text;
    requestParameter[@"branchName"] = self.zhihangTF.text;
    requestParameter[@"ownerName"] = self.nameTF.text;
    
    ZWTools *tools = [ZWTools sharedManager];
    [tools addPaymentAddress:requestParameter sucessBlock:^(id jsonResponse) {
        
    } Error:^(id jsonResponse) {
        
    }];
}

@end
